<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	<head>
	
	</head>

<ui:composition template="_templateLogin.xhtml">
	<ui:define name="title">#{msg.loginTitle}</ui:define>
	<ui:define name="content">
		<h:form id="login-form">
			<p:growl id="msg" showDetail="true" life="3000" />
			<fieldset>
				<p>
					<h:outputLabel for="username" value="#{msg.user}" />
					<p:inputText placeholder="#{msg.enterUsername}" required="true" 
					requiredMessage="#{msg.loginMsgUser}" id="username" 
					styleClass="round full-width-input" value="#{loginBean.uname}"> 
					</p:inputText>
				</p>
				<p>
					<h:outputLabel for="password" value="#{msg.password}" />
					<p:password required="true" requiredMessage="#{msg.loginMsgSenha}" id="password" styleClass="round full-width-input" value="#{loginBean.password}"
					            inline="true"
					            promptLabel="Insira sua Senha"
					            placeholder="#{msg.enterPassword}">
					</p:password>
				</p>
				<h:commandLink action="#{loginBean.login}" value="#{msg.loginButton}" styleClass="button round blue image-right ic-right-arrow" 
				update="loginForm" ajax="true"/>
			</fieldset>
		</h:form>
	</ui:define>
</ui:composition>
</html>